// Fill out your copyright notice in the Description page of Project Settings.


#include "DelegateObject.h"

void UDelegateObject::TestDelegate()
{
	UE_LOG(LogTemp, Warning, TEXT(__FUNCTION__));
}

bool UDelegateObject::TestDelegate_Ret()
{
	UE_LOG(LogTemp, Warning, TEXT(__FUNCTION__));
	return false;
}

void UDelegateObject::TestDelegate_Bool(bool bParam, int Param)
{
	UE_LOG(LogTemp, Warning, TEXT("%s %u %u"),  TEXT(__FUNCTION__), bParam, Param);
}

void UDelegateObject::TestDelegate_Payload(int Param)
{
	UE_LOG(LogTemp, Warning, TEXT("%s %u"), TEXT(__FUNCTION__), Param);
}

bool UDelegateObject::TestDelegate_Ret_PBool(bool bBool)
{
	UE_LOG(LogTemp, Warning, TEXT("%s, bool=%u"), TEXT(__FUNCTION__), bBool);
	return bBool;
}

void UDelegateObject::TestDelegateUFunction()
{
	UE_LOG(LogTemp, Warning, TEXT(__FUNCTION__));
}

void UDelegateObject::TestMultiDelegate_Ret_PBool(bool Value)
{
	UE_LOG(LogTemp, Warning, TEXT("%s, bool=%u"), TEXT(__FUNCTION__), Value);
}

void UDelegateObject::TestMultiDelegate_Ret_PBool_Payload(bool Value, int32 Payload)
{
	UE_LOG(LogTemp, Warning, TEXT("%s, bool=%u, payload=%d"), TEXT(__FUNCTION__), Value, Payload);
}
